﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ic.Model
{
    /// <summary>
    /// 实体的TABLE属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class TableInfoAttribute : Attribute
    {
        #region Private Members
        
        private string tableName;       
        private string primaryKey;      
        private string columns;         

        #endregion

        #region Properties

        /// <summary>
        /// 表名
        /// </summary>
        /// <value>The table name.</value>
        public string TableName
        {
            get { return tableName; }
            set
            {
                tableName = value;                
            }
        }

        /// <summary>
        /// 主键
        /// </summary>
        /// <value>The table primaryKey.</value>
        public string PrimaryKey
        {
            get { return primaryKey; }
            set
            {
                primaryKey = value;
            }
        }

        /// <summary>
        /// 所有列
        /// </summary>
        /// <value>The table columns.</value>
        public string Columns
        {
            get { return columns; }
            set
            {
                columns = value;
            }
        }

        #endregion        
    }
}
